<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>Title</title>
        <style>
            .d1{
                width:500px;
                height: 500px;
                background: yellowgreen;
                margin-left:100px;
            }
            .d2{
                width:100px;
                height: 100px;
                background:pink;
                display: inline-block;
                margin-left:200px;
            }
            .d3{
                width:100px;
                height: 100px;
                background:hotpink;
                display: inline-block;
                margin-left:30px;
            }
        </style>
    </head>
    <body>
        <div class="d1">
            <div class="d2"></div>
            <div class="d3"></div>
        </div>
    </body>
</html>